package org.zfes.snowier.common.monitor.mysql;

import java.io.Serializable;
import java.util.Date;

public class MonitorData implements Serializable, Cloneable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String host;
	private Integer port;
	private String instanceKey;
	private Date date;
	
	private Integer tps;
	private Integer qps;
	private Integer Questions;
	private Integer Com_select;
	private Integer Com_insert;
	private Integer Com_delete;
	private Integer Com_update;
	private Integer Com_begin;
	private Integer Com_commit;
	private Integer Com_rollback;
	private Integer Max_used_connections;
	private Integer Threads_connected;
	private Integer Connections;
	private Integer Threads_running;
	private Integer Bytes_received;
	private Integer Bytes_sent;
	private Integer Open_tables;
	private Integer Uptime;
	
		@Override  
	    public MonitorData clone() {  
			MonitorData data = null;  
	        try{  
	        	data = (MonitorData)super.clone();  
	        }catch(CloneNotSupportedException e) {  
	            e.printStackTrace();  
	        }  
	        return data;  
	    }  
	
	public String getHost() {
		return host;
	}
	public MonitorData setHost(String host) {
		this.host = host;
		return this;
	}
	public Integer getPort() {
		return port;
	}
	public MonitorData setPort(Integer port) {
		this.port = port;
		return this;
	}
	public String getInstanceKey() {
		return instanceKey;
	}
	public MonitorData setInstanceKey(String instanceKey) {
		this.instanceKey = instanceKey;
		return this;
	}
	public Integer getQuestions() {
		return Questions;
	}
	public MonitorData setQuestions(Integer questions) {
		Questions = questions;
		return this;
	}
	public Integer getCom_select() {
		return Com_select;
	}
	public MonitorData setCom_select(Integer com_select) {
		Com_select = com_select;
		return this;
	}
	public Integer getCom_insert() {
		return Com_insert;
	}
	public MonitorData setCom_insert(Integer com_insert) {
		Com_insert = com_insert;
		return this;
	}
	public Integer getCom_delete() {
		return Com_delete;
	}
	public MonitorData setCom_delete(Integer com_delete) {
		Com_delete = com_delete;
		return this;
	}
	public Integer getCom_update() {
		return Com_update;
	}
	public MonitorData setCom_update(Integer com_update) {
		Com_update = com_update;
		return this;
	}
	public Integer getCom_begin() {
		return Com_begin;
	}
	public MonitorData setCom_begin(Integer com_begin) {
		Com_begin = com_begin;
		return this;
	}
	public Integer getCom_commit() {
		return Com_commit;
	}
	public MonitorData setCom_commit(Integer com_commit) {
		Com_commit = com_commit;
		return this;
	}
	public Integer getCom_rollback() {
		return Com_rollback;
	}
	public MonitorData setCom_rollback(Integer com_rollback) {
		Com_rollback = com_rollback;
		return this;
	}
	public Integer getMax_used_connections() {
		return Max_used_connections;
	}
	public MonitorData setMax_used_connections(Integer max_used_connections) {
		Max_used_connections = max_used_connections;
		return this;
	}
	public Integer getThreads_connected() {
		return Threads_connected;
	}
	public MonitorData setThreads_connected(Integer threads_connected) {
		Threads_connected = threads_connected;
		return this;
	}
	public Integer getConnections() {
		return Connections;
	}
	public MonitorData setConnections(Integer connections) {
		Connections = connections;
		return this;
	}
	public Integer getThreads_running() {
		return Threads_running;
	}
	public MonitorData setThreads_running(Integer threads_running) {
		Threads_running = threads_running;
		return this;
	}
	public Integer getBytes_received() {
		return Bytes_received;
	}
	public MonitorData setBytes_received(Integer bytes_received) {
		Bytes_received = bytes_received;
		return this;
	}
	public Integer getBytes_sent() {
		return Bytes_sent;
	}
	public MonitorData setBytes_sent(Integer bytes_sent) {
		Bytes_sent = bytes_sent;
		return this;
	}
	public Integer getOpen_tables() {
		return Open_tables;
	}
	public MonitorData setOpen_tables(Integer open_tables) {
		Open_tables = open_tables;
		return this;
	}
	public Integer getUptime() {
		return Uptime;
	}
	public MonitorData setUptime(Integer uptime) {
		Uptime = uptime;
		return this;
	}
	
	public Date getDate() {
		return date;
	}
	public MonitorData setDate(Date date) {
		this.date = date;
		return this;
	}
	
	
	
	public Integer getTps() {
		return tps;
	}

	public void setTps(Integer tps) {
		this.tps = tps;
	}

	public Integer getQps() {
		return qps;
	}

	public void setQps(Integer qps) {
		this.qps = qps;
	}

	@Override
	public String toString() {
		return "MonitorData [host=" + host + ", port=" + port + ", instanceKey=" + instanceKey + ", date=" + date
				+ ", tps=" + tps + ", qps=" + qps + ", Questions=" + Questions + ", Com_select=" + Com_select
				+ ", Com_insert=" + Com_insert + ", Com_delete=" + Com_delete + ", Com_update=" + Com_update
				+ ", Com_begin=" + Com_begin + ", Com_commit=" + Com_commit + ", Com_rollback=" + Com_rollback
				+ ", Max_used_connections=" + Max_used_connections + ", Threads_connected=" + Threads_connected
				+ ", Connections=" + Connections + ", Threads_running=" + Threads_running + ", Bytes_received="
				+ Bytes_received + ", Bytes_sent=" + Bytes_sent + ", Open_tables=" + Open_tables + ", Uptime=" + Uptime
				+ "]";
	}

	





}
